package com.zhang.ziyan.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhang.ziyan.mapper.RoleMapper;
import com.zhang.ziyan.pojo.Role;
import com.zhang.ziyan.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("roleService")
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
     @Autowired
     RoleMapper roleMapper;
    @Override
    public List<JSONObject> PermissionById(Long roleid) {
        return roleMapper.PermissionById(roleid);
    }
}
